package com.central.user.dao;

import com.central.user.model.PlayerBaseInfo;
import com.central.user.model.PlayerDetailsInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * login数据库
 */
@Mapper
public interface PlayerBaseDao {

//    @Select("select count(*) from playerlogininfo")
    int findCount(Map<String, Object> params);

    List<PlayerBaseInfo> findPlayerInfo(Map<String, Object> params);

    @Select("select * from playerlogininfo where playerId = #{playerId}")
    List<PlayerDetailsInfo> findByPlayerId(String playerId);
}
